import React,{Component} from 'react';
import {Button, Radio, Icon} from 'antd';
class BtnGroup extends Component{
    constructor(props){
        super(props);
    }
    render(){
        const {btnGroup} = this.props
        return(
            <div>
                <Radio.Group onChange={this.handleSizeChange} style={{border:'1px solid #000',backgroundColor:'#000'}}>
                    {
                        btnGroup.map((item,index)=>{
                            return(
                            <Radio.Button key={index} onClick={item.fun} style={{border:'none',backgroundColor:'#000',color:'#fff'}}>
                                <Icon type={item.icon}/>{item.label}
                            </Radio.Button>
                            )
                        })
                    }
                </Radio.Group>
            </div>
        )
    }
}
export default BtnGroup;
